﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Public
{
    public class BatchDetails
    {
        private Product product;
        private Batch batch;
        private int quantity;

        public BatchDetails() { }

        public int Quantity
        {
            get { return quantity; }
            set { quantity = value; }
        }

        public Product Product
        {
            get { return product; }
            set { product = value; }
        }

        public Batch Batch
        {
            get { return batch; }
            set { batch = value; }
        }

        public BatchDetails(Product p, Batch b)
        {
            this.batch = b;
            this.product = p;
        }
        public void clearAll()
        {
            this.batch = null;
            this.product = null;
            this.quantity = 0;
        }
    }
}
